<?php

	// -------------------------------------------------------------------------------------
	// Router laden
	$ctrl		= Zend_Controller_Front::getInstance();
	$router = $ctrl->getRouter();

	// -------------------------------------------------------------------------------------
	// Map / Tiles
	$route = new Zend_Controller_Router_Route(
		'/maps/tile/:pos',
		array(
			'controller'	=> 'maps',
			'action'			=> 'tile',
		)
	);
	$router->addRoute('MapsTile', $route);

	$route = new Zend_Controller_Router_Route(
		'/maps/tile/resource/:tileId/:resourceId/',
		array(
			'controller'	=> 'maps',
			'action'			=> 'tileResource',
		)
	);
	$router->addRoute('MapsTileResource', $route);

	// -------------------------------------------------------------------------------------
	// Queue
	$route = new Zend_Controller_Router_Route(
		'/queue/add/:actionId/:parentObjectId/',
		array(
			'controller'	=> 'queue',
			'action'			=> 'add',
			'type'				=> 'object'
		)
	);
	$router->addRoute('QueueAddObject', $route);


	$route = new Zend_Controller_Router_Route(
		'/queue/add/:type/:actionId/:sourceId/',
		array(
			'controller'	=> 'queue',
			'action'			=> 'add'
		)
	);
	$router->addRoute('QueueAddResource', $route);

	// -------------------------------------------------------------------------------------
	// User / Game
	$route = new Zend_Controller_Router_Route(
		'/user/:userId/game/:gameId/',
		array(
			'controller'	=> 'Game',
			'action'			=> 'index',
		)
	);
	$router->addRoute('Game', $route);

	// -------------------------------------------------------------------------------------
	// Object
	$route = new Zend_Controller_Router_Route(
		'/objects/:objectId/',
		array(
			'controller'	=> 'objects',
			'action'			=> 'index'
		)
	);
	$router->addRoute('Object', $route);

	// -------------------------------------------------------------------------------------
	// System
//	$route = new Zend_Controller_Router_Route(
//		'/system/resources/index/',
//		array(
//			'module'			=> 'system',
//			'controller'	=> 'resources',
//			'action'			=> 'index'
//		)
//	);
//	$router->addRoute('SystemResources', $route);

?>